<xs:schema targetNamespace="http://Microsoft.ConnectionEngine/Schemas/ServiceProviderRegister" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://Microsoft.ConnectionEngine/Schemas/ServiceProviderRegister" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="request" nillable="true">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" name="UserCredentials" type="UserCredentials"></xs:element>
        <xs:element minOccurs="1" maxOccurs="1" name="ServiceProviderPoolLinks" type="ArrayOfServiceProviderPoolLinks"   />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

  <xs:complexType name="UserCredentials">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="UserName" type="xs:string"></xs:element>
      <xs:element minOccurs="1" maxOccurs="1" name="Password" type="xs:string"></xs:element>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="ArrayOfServiceProviderPoolLinks">
    <xs:sequence>
      <xs:element name="ServiceProviderPoolLink" nillable="true" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" maxOccurs="1" name="PoolID" type="xs:int"></xs:element>
            <xs:element minOccurs="1" maxOccurs="1" name="ServiceProviderID" type="xs:int"></xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>

</xs:schema>